home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
mac
/
ch10
/
10fig08.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
675b
|
33 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Blinking ball
Shape {
appearance Appearance {
material DEF BallColor Material {
diffuseColor 0.4 0.4 0.4
}
}
geometry Sphere { }
},
# Animation clock
DEF Clock TimeSensor {
cycleInterval 1.0
loop TRUE
},
# Animation path
DEF ColorPath ColorInterpolator {
key [ 0.0, 0.5, 0.5, 1.0 ]
keyValue [
0.0 1.0 0.0, 0.0 1.0 0.0,
0.0 0.0 1.0, 0.0 0.0 1.0,
]
}
]
}
ROUTE Clock.fraction_changed TO ColorPath.set_fraction
ROUTE ColorPath.value_changed TO BallColor.set_emissiveColor